package com.lan.schedule;

import android.app.Application;
import android.os.Handler;

public class MyAppliacation extends Application {

    private static MyAppliacation myAppliacation;
    public Handler handler =null;

    public Handler getHandler() {
        return handler;
    }

    public void setHandler(Handler handler) {
        this.handler = handler;
    }

    public static MyAppliacation getInstance(){
        if (myAppliacation==null){
            synchronized (MyAppliacation.class){
                if (myAppliacation==null){
                    myAppliacation = new MyAppliacation();
                }
            }
        }
        return myAppliacation;
    }

    @Override
    public void onCreate() {
        super.onCreate();
    }
}

